<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>v-text指令</title>
</head>
<body>
<div id="app">
    <h2 v-text="message">12</h2>
    <h2 v-text="message + '!!'">12</h2>
    <h2 v-text="info"></h2>
    <h2>{{info}}!!</h2>
    <h2>{{info + "!!"}}</h2>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script>
    let app = new Vue({
        el:"#app",
        data:{
            message:"v-text指令",
            info:"123123"
        }
    })
</script>
</body>
</html>